package com.tank;

public class Main {

    public static void main(String[] args) throws InterruptedException {
        TankFrame tf = new TankFrame();

        //初始化敌方坦克
        int initTankCount = Integer.parseInt((String) PropertyMgr.get("initTankCount"));

        for (int i = 0; i < initTankCount; i++) {
            tf.tanks.add(new Tank(50+i*80, 200, Dir.DOWN, Group.BAD,  tf));
        }


        //tf.setVisible(true);\
        while (true){
            Thread.sleep(50);
            tf.repaint();
        }
    }
}
